//进行中

import { get, post, remove, put } from '@/server/request'
import { baseApi, baseApp } from '@/server/base'

export const DoingApi = {
  /**
   * 获取进行中
   * @param params
   * @returns
   */
  getList(params?: object) {
    return get(`${baseApi}/api/apk/tasks/running`, params)
  },

  /**
   * Jam Rent
   * @param code
   * @returns
   */
  getJamRent(code: string, machine: string) {
    const LIMIT = 6
    return get(`${baseApi}/api/apk/mcrs/jam/rent/${LIMIT}?code=${code}&machine=${machine}`)
  }
}
